using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools._Administration
{
    /// <summary>
    /// <para>Create Utility Network</para>
    /// <para>Creates a utility network in an enterprise or file  geodatabase feature dataset.</para>
    /// <para>在企业级地理数据库或文件地理数据库要素数据集中创建公共设施网络。</para>
    /// </summary>    
    [DisplayName("Create Utility Network")]
    public class CreateUtilityNetwork : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateUtilityNetwork()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_feature_dataset">
        /// <para>Input Feature Dataset</para>
        /// <para>The geodatabase feature dataset in which the utility network and schema will be created.</para>
        /// <para>将在其中创建公共设施网络和方案的地理数据库要素数据集。</para>
        /// </param>
        /// <param name="_in_utility_network_name">
        /// <para>Utility Network Name</para>
        /// <para>The name of the utility network that will be created.</para>
        /// <para>将创建的公共设施网络的名称。</para>
        /// </param>
        /// <param name="_service_territory_feature_class">
        /// <para>Service Territory Feature Class</para>
        /// <para><xdoc>
        ///   <para>The existing polygon feature class that will be used to create the utility network's geographical extent. Utility network features cannot be created outside of this extent.</para>
        ///   <para>The feature class must be z- and m-enabled.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>将用于创建公共设施网络地理范围的现有面要素类。不能在此范围之外创建公共设施网络要素。</para>
        ///   <para>要素类必须启用 z 和 m。</para>
        /// </xdoc></para>
        /// </param>
        public CreateUtilityNetwork(object _in_feature_dataset, object _in_utility_network_name, object _service_territory_feature_class)
        {
            this._in_feature_dataset = _in_feature_dataset;
            this._in_utility_network_name = _in_utility_network_name;
            this._service_territory_feature_class = _service_territory_feature_class;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Create Utility Network";

        public override string CallName => "un.CreateUtilityNetwork";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_feature_dataset, _in_utility_network_name, _service_territory_feature_class, _out_utility_network];

        /// <summary>
        /// <para>Input Feature Dataset</para>
        /// <para>The geodatabase feature dataset in which the utility network and schema will be created.</para>
        /// <para>将在其中创建公共设施网络和方案的地理数据库要素数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Feature Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_feature_dataset { get; set; }


        /// <summary>
        /// <para>Utility Network Name</para>
        /// <para>The name of the utility network that will be created.</para>
        /// <para>将创建的公共设施网络的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Utility Network Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network_name { get; set; }


        /// <summary>
        /// <para>Service Territory Feature Class</para>
        /// <para><xdoc>
        ///   <para>The existing polygon feature class that will be used to create the utility network's geographical extent. Utility network features cannot be created outside of this extent.</para>
        ///   <para>The feature class must be z- and m-enabled.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>将用于创建公共设施网络地理范围的现有面要素类。不能在此范围之外创建公共设施网络要素。</para>
        ///   <para>要素类必须启用 z 和 m。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Service Territory Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _service_territory_feature_class { get; set; }


        /// <summary>
        /// <para>Output Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        public CreateUtilityNetwork SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}